package com.agile.major.service;

import com.agile.major.domain.MajorQcbook;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * Service Interface for managing MajorQcbook.
 */
public interface MajorQcbookService {

    /**
     * Save a majorQcbook.
     *
     * @param majorQcbook the entity to save
     * @return the persisted entity
     */
    MajorQcbook save(MajorQcbook majorQcbook);

    /**
     *  Get all the majorQcbooks.
     *
     *  @param pageable the pagination information
     *  @return the list of entities
     */
    Page<MajorQcbook> findAll(Pageable pageable);

    /**
     *  Get the "id" majorQcbook.
     *
     *  @param id the id of the entity
     *  @return the entity
     */
    MajorQcbook findOne(Long id);

    /**
     *  Delete the "id" majorQcbook.
     *
     *  @param id the id of the entity
     */
    void delete(Long id);
    // 根据专业查询
    Page<MajorQcbook> getQcBookByMajor(Long id,Pageable pageable);
}
